<div class="form radio" id="buttonset-{$item.fieldId}">
    {foreach from=$item.options key=optionKey item=option}
        <input tableName={$item.tableName}
        {if $item.referenceTable}
            referenceTable="{$item.referenceTable}"
        {/if}
        class="form-part-radio"
        {if $item.disabled == 1}
        disabled
        {/if}
        id="radio-{$optionKey}"
        name="{$item.name|default: null}"
        title="{$item.title|default: text}"
        type="radio"
        value="{$option.id}"
        {if $option.id == $item.valueId}
              checked="checked"
        {/if}
        />
        <label class="form-part-label" for="radio-{$optionKey}">{$option.name}</label>
    {/foreach}
</div>